import java.util.Scanner;

/**
 * Created by dllo on 18/3/28.
 */
public class Text10 {
    public static void main(String[] args) {
        //接受用户输入的两个值  最大值 最小值
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个数:");
        int a = scanner.nextInt();
        System.out.println("请输入第二个数");
        int b = scanner.nextInt();

        if (a < b) {
            System.out.println("最大值是:" + b + "最小值是:" + a);
        } else {
            System.out.println("最大值是:" + a + "最小值是:" + b);

        }
    }
}

